#ifndef __DB_WDG_H
#define __DB_WDG_H

#include "stm32f10x.h"

#define WdgGHz     4      //看门狗预分频值   40000HZ/64=625HZ
#define WdgStarter 1250   //看门狗初值         (1/625)*1250=2s

#ifdef __cplusplus
 extern "C" {
#endif 

void wdg_init(void);
void iwdg_feed(void);

#ifdef __cplusplus
 }
#endif 

#endif
